import { watch } from "vue"

// 发送请求去除空元素
export function delNull(data: any) {
  if (data instanceof Object) {
    Object.keys(data).forEach((key) => {
      if(!data[key]) delete data[key]
    })
  }
  return data
}